/**
 * Classe che rappresenta un utente
 * @author SPAIRisKo
 */

package org.spairisko.domain;


public class User {

    private String name;
    private String surname;
    private String username;
    private String email;
    private String password;
    private boolean bot;

    /**
     * Costruttore di default
     */
    public User(){
        this.bot = false;
    }

    /**
     * Costruttore
     * @param name nome dell'utente
     * @param surname congome dell'utente
     * @param username username dell'utente
     * @param email email dell'utente
     * @param password password dell'utente
     */
    public User(String name, String surname, String username, String email, String password) {
        this.name = name;
        this.surname = surname;
        this.username = username;
        this.email = email;
        this.password = password;
        this.bot = false;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean isBot() {
        return bot;
    }

    public void setBot(boolean bot) {
        this.bot = bot;
    }

    @Override
    public String toString(){
        return this.getName() + " " + this.getSurname();
    }
}
